package cn.kpi.dao.civilass;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.civilass.CATempDetailEntity;
import cn.kpi.entity.civilass.CivilAssTempEntity;

@MyBatisDao
public interface CivilAssTempDao {
public int InsertCATemp(CivilAssTempEntity entity)throws Exception;
public int InsertCATempDetailBatch(@Param("tempid")Long tempid,@Param("list")List<Long> list)throws Exception;
public int InsertCATempOrgBatch(@Param("tempid")Long tempid,@Param("list")List<Long> list)throws Exception;
public int UpdateCATempOrgStatus(@Param("orgids")String orgids)throws Exception;
public int UpdateCATempStatus()throws Exception;
public int UpdateCATempDetailStatus()throws Exception;
public int InsertCATempDetailBatchOther(@Param("tempid")Long tempid,@Param("itemids")String itemids)throws Exception;


public List<CivilAssTempEntity> GetCAItemByWhere(@Param("where")String where)throws Exception;

public List<CATempDetailEntity> GetItemListByTempId(@Param("tempid")Long tempid)throws Exception;

public List<Map> GetTempOrgListByTempId(@Param("tempid")Long tempid,@Param("columns")String columns)throws Exception;
}
